<!-- 分账管理扫码获取openid -->
<template>
	<main-content>
		111111111111
	</main-content>
</template>
<script setup name='index'>
	import {
		reactive,
		ref,
		getCurrentInstance,
		onMounted,
		computed
	} from 'vue'
	import {
		onLoad,
		onShow,
		onReady
	} from '@dcloudio/uni-app'
	import {
		getPlatformCode
	} from '@/pages-menus/common/platformApi.js'
	import {
		useCommonStore
	} from '@/stores/common.js'
	import {
		useUserStore
	} from '@/stores/user.js'
	import {
		storeApi
	} from '@/common/api/store/index.js'
	import {
		codeApi
	} from '@/pages-menus/common/api/code/index.js'
	import {
		parseQueryParams
	} from '@/common/common.js'
	const commonStore = useCommonStore()
	const {
		proxy
	} = getCurrentInstance()


	const maiColor = computed(() => {
		return proxy.$System.maiColor.value
	})

	const initForm = {
		storeAbbrNameLeftLike: undefined, //姓名
		no: undefined, //登录账号
		status: undefined, //状态
		position: undefined, //岗位
		pageNo: 1,
		pageSize: 10,
	}
	const queryForm = ref({
		...initForm
	})

	const listData = ref()
	// 获取数据列表
	const getList = async () => {
		// 统一显示加载框
		uni.showLoading({
			title: '加载中...',
			mask: true
		})
		let res = await storeApi.page(queryForm.value)
		// listData.value = res.data
		// 隐藏加载框
		uni.hideLoading()
	}
	const code = ref()

	onLoad(async (options) => {

		let opt = parseQueryParams(options)
		alert(JSON.stringify(options))
		// code.value = options?.code || await getPlatformCode()
	})
	onReady(() => {
		// paging.value.reload()
	})
</script>
<style lang='scss' scoped>
</style>